INF
File Sections
The different
sections of an INF file fit together to provide the information used by the
setup functions during an installation. The central section that defines the
steps of the installation is the Install
The Install
To better
understand this, consider the following example of an Install section.
[MyInstallSection]
Copyfiles=DataFiles, ProgramFiles
Delfiles=OldFiles
UpdateInis=NewIniInfo
AddReg=NewRegistryInfo, MoreNewRegistryInfo
DelReg=OldRegistryInfo, MoreOldRegistryInfo
In the preceding
example, the CopyFiles key is given the values DataFiles and ProgramFiles.
These specify two Copy Files
Simliarly,
the Delfiles key specifies Delete Files.O07.L sections that contain information relevant
to file deletion operations. The UpdateInis key specifies Update
INI File sections
that contain information about updating entries in the INI file, and the AddReg
and DelReg keys specify Add Registry and Delete Registry sections that contain
information about adding or deleteing registry information.
For more
information about the types of sections that can be specified in an Install
The DestinationDirs2LKG_AQ, or Delete Files sections.
The SourceDisksNames
The SourceDisksFiles
You can have
multiple platform-specific SourceDisksNames
If the setup
functions find platform-specific SourceDisksNames and SourceDisksFiles
sections that match the user s
platform, the setup functions use the platform-specific sections. Otherwise the
setup functions use the default (non-suffixed) SourceDisksNames and SourceDisksFiles
sections.
For example,
consider the following sections from an INF file.
[SourceDisksNames]
1= NT CD , \default
[SourceDisksNames.mips]
1= NT CD , \mips
[SourceDisksNames.alpha]
1= NT CD , \alpha
If the user s machine was a MIPS-based system, the setup functions
use the information listed in the section titled SourceDisksNames.mips
and look for source files in the \mips directory of the specified source media.
For an
Intel-based system, no platform-specific section exists, and the setup
functions use the information listed in SourceDisksNames and look for
source files in the \default directory.
The Strings